﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace myFarm
{
    class Ground : Drawable
    {
        bool occupied;
        Animal containing;
        drawable_type type;
        Vector2 pos;

        public Ground(Vector2 pos, drawable_type type)
            : base(type)
        {
            this.type = type;
            this.pos = pos;
        }

        public Animal Containing
        {
            get 
            {
                if (occupied)
                    return containing;
                else
                    return null;
            }

            set
            {
                if (!occupied)
                {
                    containing = value;
                    occupied = true;
                }
            }
        }
        public bool Occupied
        {
            get { return occupied; }
        }
    }
}
